package cn.tedu.online.day10;

public class SubCls extends SuperCls {
    int x; //0
    int a = 6;  //0  6
    public SubCls(){
        super();
        test();
    }
    public void  test(){
        System.out.println(a);
    }
    public static void main(String[] args) {
        new SubCls();
    }
}

class SuperCls{
    int a = 8;
    public SuperCls(){
        super();
        test();
    }
    public void  test(){
        System.out.println(a);
    }
}

